package xyz.xtt.activity.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * NFT碎片记录表
 * </p>
 *
 * @author dale
 * @since 2025-01-16
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Accessors(chain = true)
@TableName("tbl_fragment_record")
@ApiModel(value = "TblFragmentRecord对象", description = "nft碎片记录表")
public class TblFragmentRecord implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "NFT碎片id")
	private Long fragmentId;

	@ApiModelProperty(value = "碎片来源用户id，-1：来自活动期间系统掉落；>0：为赠送方用户id")
	private Long formUser;

	@ApiModelProperty(value = "获取碎片用户id")
	private Long toUser;

	@ApiModelProperty(value = "碎片来源类型：0 -> 系统掉落；1 -> 用户赠送")
	private Integer fromType;

	@ApiModelProperty(value = "创建时间")
	private Long createTime;

	@ApiModelProperty(value = "状态：0 -> 未使用；1 -> 已使用；2 -> 已赠出")
	private Integer status;

	@ApiModelProperty(value = "触发动作：1 -> 建立一个10人以上群组；2 -> 发1个红包；3 -> 浏览5个人的地皮；4 -> 浏览5个商家；5 -> 看1个短剧；6 -> 砍伐收集5个材料；7 -> 发布动态；8 -> 给用户评论")
	private Integer fromOperate;

	@ApiModelProperty(value = "归属平台")
	private String platform;
}
